package demo;

public class NewThreadMain {

  public static void main(String[] args) {
    System.out.println("main function in Thread:" + Thread.currentThread().getName());

    var newThread = new NewThread();

    newThread.start();

    for (var i = 0; i < 3; i++) {
      System.out.println("Thread" + Thread.currentThread().getName() + "print:" + i);
    }
  }
}
